import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Author Sugar
 * @Version 2018/3/16 13:50
 */
public class User implements Serializable{
    private int id;
    private String name;
    private int sex;
    private Date birthday;
    private Integer age;
    private Course mainCourse;
    private List<Course> courses;
    private Map<String, Object> args;

    public User(int id, int age) {
        this.id = id;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Course getMainCourse() {
        return mainCourse;
    }

    public void setMainCourse(Course mainCourse) {
        this.mainCourse = mainCourse;
    }

    public List<Course> getCourses() {
        return courses;
    }

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }

    public Map<String, Object> getArgs() {
        return args;
    }

    public void setArgs(Map<String, Object> args) {
        this.args = args;
    }

    @Override
    public String toString() {
        return "{id=" + id+
                ", name=" + name +
                ", sex=" + sex +
                ", birthday=" + birthday +
                ", age=" + age +
                ", mainCourse=" + mainCourse +
                ", courses=" + courses +
                ", args=" + args +
                '}';
    }
}
